package structural.facade;

/**
 * @Description: 代办公司
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class Company {
    private Department policeOffice;
    private Department bank;

    public Company() {
        this.policeOffice = new PoliceOffice();
        this.bank = new Bank();
    }

    public void hand(String name){
        this.policeOffice.handle(name);
        this.bank.handle(name);
    }
}
